﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Comun
{
    abstract class QueryBuilder
    {
        public static String SELECT = "SELECT ";

        public static String INSERT = "INSERT INTO ";

        public static String UPDATE = "UPDATE ";

        public static String FROM = " FROM ";

        public static String WHERE = " WHERE ";

        public String tabla { set; get; }

        public String campos { set; get; }

        public String condicion { set; get; }

        public abstract String build();

        protected Boolean noEsNulo(String value)
        {
            return !(value == "" || value == null);
        }
    }
}
